package io.wins.vertx.database;

import java.util.List;

public class Page<T> {
    private List<T> data;//当前页的数据
    private Integer firstPage;//首页
    private Integer prePage;//上一页
    private Integer nextPage;//下一页
    private Integer totalPage;//末页、总页数
    private Integer currentPage;//当前页
    private Integer totalCount;//总记录数
    private Integer pageSize;//每页显示的记录数

    public List<T> getData() {
        return this.data;
    }

    public void setData(final List<T> data) {
        this.data = data;
    }

    public Integer getFirstPage() {
        return this.firstPage;
    }

    public void setFirstPage(final Integer firstPage) {
        this.firstPage = firstPage;
    }

    public Integer getPrePage() {
        return this.prePage;
    }

    public void setPrePage(final Integer prePage) {
        this.prePage = prePage;
    }

    public Integer getNextPage() {
        return this.nextPage;
    }

    public void setNextPage(final Integer nextPage) {
        this.nextPage = nextPage;
    }

    public Integer getTotalPage() {
        return this.totalPage;
    }

    public void setTotalPage(final Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Integer getCurrentPage() {
        return this.currentPage;
    }

    public void setCurrentPage(final Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getTotalCount() {
        return this.totalCount;
    }

    public void setTotalCount(final Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(final Integer pageSize) {
        this.pageSize = pageSize;
    }
}
